/**
 * Universidad del Valle de Guatemala
 * Algoritmos y Estructuras de Datos
 * Rodrigo Mejia 11111
 * Maria Fernanda Martinez 11176
 * Carol Solares 08406
 */


import org.junit.AfterClass;
import org.junit.Test;
import static org.junit.Assert.*;
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import org.junit.AfterClass;
import org.junit.Test;
import static org.junit.Assert.*;
import org.junit.BeforeClass;


public class RadioTest {
    
    public RadioTest() {
    }

    @BeforeClass
    public static void setUpClass() throws Exception {
    }

    @AfterClass
    public static void tearDownClass() throws Exception {
    }

    /**
     * Test of Power method, of class RadioTest.
     */
    @Test
    public void testPower() {
        System.out.println("Power Check:");
        Radio test = new Radio();
        assertEquals(true, test.Power());
    }

    /**
     * Test of ChangeSignal method, of class RadioTest.
     */
    @Test
    public void testChangeSignal() {
        System.out.println("ChangeSignal Check:");
        Radio test = new Radio();
        assertEquals(true, test.ChangeSignal());
    }

    /**
     * Test of NextFreq method, of class RadioTest.
     */
    @Test
    public void testNextFreq() {
        System.out.println("NextFreq Check:");
        Radio test = new Radio();
        float a = 0.2F;
        assertEquals(a,test.NextFreq() , 0.1f);
    }

    /**
     * Test of SaveFreq method, of class RadioTest.
     */
    @Test
    public void testSaveFreq() {
        System.out.println("SaveFreq Check:");
        Radio test = new Radio();
        assertEquals(true, test.SaveFreq(1));
    }

    /**
     * Test of ChangeTune method, of class RadioTest.
     */
    @Test
    public void testChangeTune() {
        System.out.println("ChangeTune Check:");
        Radio test = new Radio();
        assertEquals(87.9, test.ChangeTune(1), 0.1f);
    }

    /**
     * Test of IsOn method, of class RadioTest.
     */
    @Test
    public void testIsOn() {
        System.out.println("IsOn Check: ");
        Radio test = new Radio();
        assertEquals(false, test.IsOn());
    }

    /**
     * Test of IsAm method, of class RadioTest.
     */
    @Test
    public void testIsAm() {
        System.out.println("IsAm");
        Radio test = new Radio();
        assertEquals(false, test.IsAm());
    }

    /**
     * Test of GetFreq method, of class RadioTest.
     */
    @Test
    public void testGetFreq() {
        System.out.println("GetFreq Check: ");
        Radio test = new Radio();
        assertEquals(0, test.GetFreq(), 0.0);
    }
}

